<div class="content-l">	
	<div class="home_coupon_title_box">
		<div class="list-title">
			<h2 class="navTitleFont">
				{if $title_prefix != ''}
					{$title_prefix} Featured Coupon Codes
				{else}
					Featured Coupon Codes
				{/if}
			</h2>
		</div>
		<div class="home_ad">
			<script type="text/javascript"><!--
				google_ad_client = "ca-pub-3974852460908538";
				/* home_coupon */
				google_ad_slot = "5921075895";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
		</div>
		
	</div>
	
    <ul class="item-list">
    	{foreach item=oCoupon from=$oCoupons name=plist}
			{if $oCoupon->getTrackingURL() != ''}
				{assign var="URL" value="{$oCoupon->getTrackingURL()}"}
			{else}
				{assign var="URL" value="{$oCoupon->getMerchant()->getDisplayURL()}"}
			{/if}

        	<li>
				<div class="thumbnail">
                	{if $oCoupon->getCreativeType() == 1}
                    	<a title="{$oCoupon->getName()}" href="{$HOME_URL}/redir.php?id={$oCoupon->getId()}&URL={$URL|base64_encode}" rel="nofollow" target="_blank">
		                	<img src="{$HOME_URL}/images/url/80/80/{$oCoupon->getCouponImage()->getImpressionTrackingUrl()|base64_encode}"  
					            	border="0" width="80" height="80" 
					            	alt="{$oCoupon->getName()} - Hoho coupons"
					            	title="{$oCoupon->getName()}"
					         />
					    </a>
			         {else if $oCoupon->getCreativeType() == 2}
			         	<a title="{$oCoupon->getName()}" href="{$HOME_URL}/{$oCoupon->getMerchant()->getNameId()}-coupon-codes" rel="nofollow" target="_blank">
				         	<img src="{$HOME_URL}/images/logo/100/30/{$oCoupon->getMerchant()->getLogo()->getId()}/{$oCoupon->getMerchant()->getNameId()}-120x30-logo-HoHoBB.{$oCoupon->getMerchant()->getLogo()->getExtName()}"  
					            border="0" width="100" height="30"   
					            alt="{$oCoupon->getName()} - Hoho coupons"
					            title="{$oCoupon->getName()}"
					         />
				         </a>
			         {/if}                    
                  </div>
                  
                <div class="item-info">
                	{if $oCoupon->getCode() != ''}
						<div class="couponCode">
							<span class="code">{$oCoupon->getCode()}</span>
						</div>
						<div class="item-title">
							<h3 style="font-size: 12px;"><a title="{$oCoupon->getName()}" href="{$HOME_URL}/redir.php?id={$oCoupon->getId()}&URL={$URL|base64_encode}">{$oCoupon->getName()|truncate:240:"..."}</a></h3>
                    	</div>
					{else}
						<div class="item-title">
							<h3><a title="{$oCoupon->getName()}" href="{$HOME_URL}/redir.php?id={$oCoupon->getId()}&URL={$URL|base64_encode}">{$oCoupon->getName()|truncate:240:"..."}</a></h3>
	                    </div>
                    {/if}
                    
                    {if $oCoupon->getDescript() != ''}
                    <div class="itemInterval  font12 item-description">
                    	{$oCoupon->getDescript()}
                    </div>
                    {/if}
                    
                    {foreach item=oAttribute from=$oCoupon->getAttributes()}
                    	{if $oAttribute->getAttributeId() == 2}
							<DIV class="itemInterval greenLinkColor font11">
								{$oAttribute->getAttributeName()}
							</DIV>
						{/if}
					{/foreach}
                    
                    <div class="itemInterval greenLinkColor font11">
                    	{if $oCoupon->getEndDate() != '' AND $oCoupon->getEndDate() != '0000-00-00'}
                    		Expires: {$oCoupon->getEndDate()|date_format} end.
                    	{else}
                    		Expires: limited time
                    	{/if}
                    </div>
                    
                    {if $isCategory != 'yes'}
	                    {if $oCoupon->getCategory()->getName() != ''}
							<DIV class="category itemInterval font11">
								Category: <a href="javascript:void(0);" onclick="requestPage('/categories/{$oCoupon->getCategory()->getFilteredName()}-coupon-codes', {$oCoupon->getCategory()->getId()}, 1);">{$oCoupon->getCategory()->getName()}</a>
							</DIV>
						{/if}
					{/if}
                    <div class="more itemInterval font12">More 
                    	<a href="{$HOME_URL}/{$oCoupon->getMerchant()->getNameId()}-coupon-codes">{$oCoupon->getMerchant()->getName()} coupon codes</a>
                    	{if $oCoupon->getImpressionpixel() != ''}
							<IMG src="{$oCoupon->getImpressionpixel()}">
						{/if}
                    </div>
				</div>
                  
			</li>
       {/foreach}
	</ul>
    
    {include file="includePage.html"}
  </div>  
 